using System.Collections;
using System.Collections.Generic;

using UnityEngine;

public class RandomColor : MonoBehaviour {
    [SerializeField] private Renderer _renderer;

    private Material _material;

    void Start() {
        _material = _renderer.material;

        _renderer.material.color = Random.ColorHSV(0f, 1f, 0.4f, 1f, 0.6f, 1f);
    }

    void OnDestroy() {
        _renderer.material = _material;
    }
}
